﻿namespace FileManage;

public interface IFileUpLoad
{
    Task<FileResult> UploadFile(FileUploadInput input);

    Task<FileResult> ChunkUploadFile(FileChunkUploadInput input);


    Task<FileResult> UploadFileFromBase64(UploadFileFromBase64Input input);

    /// <summary>
    /// 判断指定bucket是否存在
    /// </summary>
    /// <param name="bucketName"></param>
    /// <returns></returns>
    Task<int> IsBucketExit(string bucketName);

    /// <summary>
    /// 创建bucket
    /// </summary>
    /// <param name="bucketName"></param>
    /// <returns></returns>
    Task<int> CreateBucket(string bucketName);

    /// <summary>
    /// 移除bucket
    /// </summary>
    /// <param name="bucketName"></param>
    /// <returns></returns>
    Task<int> DeleteBucket(string bucketName);


}
